import java.util.Scanner;

public class Test2 {

    public static void main(String[] args) {
        long start = System.currentTimeMillis();//
        ////////////////////////////
        Scanner scan=new Scanner(System.in);
        System.out.println("请输入数字：");
        int value=scan.nextInt();
        System.out.println("偶数序列：");
        for(int i=31;i>0;i-=2){
            System.out.print((value>>i)&1);
        }
        System.out.println("");
        System.out.println("奇数序列：");
        for(int i=30;i>=0;i-=2){
            System.out.print((value>>i)&1);
        }
        ///////////////////////////
        long end = System.currentTimeMillis();//
        System.out.println("共耗时"+(end-start)+"毫秒");
    }

}

